package board_mvc.handler;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class ModifyFormAction implements CommandHandler {
@RequestMapping("modifyForm")
	@Override
	public ModelAndView process(HttpServletRequest request,
			HttpServletResponse response) {
		Map<String, Object>map=new HashMap<String, Object>();
		int num = Integer.parseInt( request.getParameter( "num" ) );
		int pageNum = Integer.parseInt( request.getParameter( "pageNum" ) );
		
		map.put("num", num);
		map.put("pageNum",pageNum);


		return new ModelAndView("modifyForm",map);
	}

}
